package yunjiao.javatutorials.designpatterns.builder;


import lombok.extern.slf4j.Slf4j;

/**
 * 入口
 *
 * @author yangyunjiao
 */
@Slf4j
public class App {
    public static void main(String[] args) {
        User user = GenericBuilder.of(User.class)
                .with(User::setFirstName, "zhang")
                .with(User::setLastName, "san")
                .with(User::setAge, 80)
                .build();
        log.info("{}", user);
    }
}
